package com.example.an.ddms1;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {
    private Button button;
    private static final String TAG="123";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        button= (Button) findViewById(R.id.littlebtn);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Log.v(TAG, "This is Verbose.");
                Log.d(TAG, "This is Debug.");
                Log.i(TAG, "This is Information");
                Log.w(TAG, "This is Warnning.");
                Log.e(TAG, "This is Error.");
            }
        });
        }
    }

